import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import {t} from "/@/hooks/web/useI18n";

const dashboard: AppRouteModule = {
  path: '/sa',
  name: 'sa',
  component: LAYOUT,
  redirect: '/sa/agent/main',
  meta: {
    // hideChildrenInMenu: true,
    icon: 'ant-design:trophy-outlined',
    title: 'DEMO',
    orderNo: 4,
  },
  children: [
    {
      path: 'agent/main',
      name: 'saAgentMain',
      component: () => import('/@/pages/sa/agent/main/index.vue'),
      meta: {
        title: '代理商清单',
        ignoreKeepAlive: false,
        // icon: 'simple-icons:about-dot-me',
        // hideMenu: true,
      },
    },
    {
      path: 'agent/main/edit',
      name: 'saAgentMainEdit',
      component: () => import('/@/pages/sa/agent/main/edit.vue'),
      meta: {
        title: '代理商编辑',
        ignoreKeepAlive: false,
        hideMenu: true,
      },
    },
    // {
    //   path: 'agent/main2',
    //   name: 'saAgentMain2',
    //   component: () => import('/@/pages/sa/agent/main/index2.vue'),
    //   meta: {
    //     title: '代理商清单 [旧风格]',
    //     ignoreKeepAlive: false,
    //     // icon: 'simple-icons:about-dot-me',
    //     // hideMenu: true,
    //   },
    // },
  ],
};

export default dashboard;
